﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Silvery.Scene;
using System.Windows.Resources;
using System.IO;
using System.Windows.Markup;

namespace Sample03_Scene
{
    //这是一个控件方式的场景载入例子
    public class Sample_1 : NScene
    {
        public Sample_1()
        {
            this.SceneEnter(new Scene02(),false);
            this.MouseLeftButtonDown += new MouseButtonEventHandler(Test_1_MouseLeftButtonDown);
            this.Children.Add(new TextBlock() { Text = "点击一下鼠标试试", FontSize = 64});
        }

        void Test_1_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            LookAtPoint(e.GetPosition(this));
        }
        protected override void OnEnter(FrameworkElement sceneElement, bool async = true)
        {
            base.OnEnter(sceneElement, async);
        }
        
    }
}
